package com.asset.dispoal.file.bank.api;

import com.asset.dispoal.file.bank.dto.FileBankDetailPageRequest;
import com.asset.dispoal.file.bank.dto.FileBankDetailRequest;
import com.asset.dispoal.file.bank.dto.FileBankExportRequest;
import com.asset.dispoal.file.bank.dto.FileBankPageRequest;
import com.asset.dispoal.file.bank.dto.FileBankRequest;
import com.asset.dispoal.file.bank.dto.FileBankStatisticsRequest;
import com.asset.dispoal.file.bank.dto.FileBankStatisticsResponse;
import tech.mhuang.pacebox.springboot.protocol.Result;

import javax.servlet.http.HttpServletResponse;

public interface FileBankService {

    Result page(FileBankPageRequest request);

    Result save(FileBankRequest request);

    Result modify(FileBankRequest request);

    Result delete(String id);

    void uploadExcel(String filepath);

    Result saveDetail(FileBankDetailRequest request);

    Result modifyDetail(FileBankDetailRequest request);

    Result pageDetail(FileBankDetailPageRequest request);

    Result deleteDetail(String id);

    void uploadDetailExcel(String filepath, String bankId);

    Result queryByLevel();

    Result queryByLevelAmount();

    Result queryDetailStatistics(String bankId);

    void export(HttpServletResponse response, FileBankExportRequest request);

    Result queryAll();

    Result getById(String id);

    Result<FileBankStatisticsResponse> queryStatistics(FileBankStatisticsRequest statisticsRequest);
}
